package com.example.yjhero.safeapp.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.RadioButton;

import com.example.yjhero.safeapp.R;
import com.example.yjhero.safeapp.base.BaseSetUpActivity;
import com.example.yjhero.safeapp.utils.DialogUtil;

public class Setup1Activity extends BaseSetUpActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setup1);
        initview();
    }

    @Override
    public void showNext() {
        startActivityAndFinishSelf(SetUp2Activity.class);
    }

    @Override
    public void showPre() {
        DialogUtil.showInToast(this,"当前页面已经是第一页");
    }

    private void initview() {
        ((RadioButton)findViewById(R.id.rb_first)).setChecked(true);
    }
}
